package com.changyinBus.system.service.impl;

import com.changyinBus.common.core.domain.entity.SysArticle;
import com.changyinBus.common.core.domain.entity.SysWxInfo;
import com.changyinBus.system.mapper.SysWxInfoMapper;
import com.changyinBus.system.service.ISysWxInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.UnsupportedEncodingException;
import java.util.Base64;
import java.util.List;

@Service
public class SysWxInfoServiceImpl implements ISysWxInfoService {
    @Resource
    private SysWxInfoMapper sysWxInfoMapper;

    @Override
    public List<SysWxInfo> selectList(SysWxInfo record) {
        return sysWxInfoMapper.selectList(record);
    }

    @Override
    public int insert(SysWxInfo record) {
        return sysWxInfoMapper.insert(record);
    }

    @Override
    public SysWxInfo selectByOpenid(String openid) {
        return sysWxInfoMapper.selectByOpenid(openid);
    }

    @Override
    public int incrementNum(String openid) {
        return sysWxInfoMapper.incrementNum(openid);
    }

    @Override
    public int getCount() {
        return sysWxInfoMapper.getCount();
    }
}
